<%@page import="Easy.table.Users"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/admin.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Internet Dreams</title>
<!-- InstanceEndEditable -->
<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen" title="default" />
<!--[if IE]>
<link rel="stylesheet" media="all" type="text/css" href="css/pro_dropline_ie.css" />
<![endif]-->

<!--  jquery core -->
<script src="js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>

<!--  checkbox styling script -->
<script src="js/jquery/ui.core.js" type="text/javascript"></script>
<script src="js/jquery/ui.checkbox.js" type="text/javascript"></script>
<script src="js/jquery/jquery.bind.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
	$('input').checkBox();
	$('#toggle-all').click(function(){
 	$('#toggle-all').toggleClass('toggle-checked');
	$('#mainform input[type=checkbox]').checkBox('toggle');
	return false;
	});
});
</script>  

<![if !IE 7]>

<!--  styled select box script version 1 -->
<script src="js/jquery/jquery.selectbox-0.5.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect').selectbox({ inputClass: "selectbox_styled" });
});
</script>
 

<![endif]>

<!--  styled select box script version 2 --> 
<script src="js/jquery/jquery.selectbox-0.5_style_2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect_form_1').selectbox({ inputClass: "styledselect_form_1" });
	$('.styledselect_form_2').selectbox({ inputClass: "styledselect_form_2" });
});
</script>

<!--  styled select box script version 3 --> 
<script src="js/jquery/jquery.selectbox-0.5_style_2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect_pages').selectbox({ inputClass: "styledselect_pages" });
});
</script>

<!--  styled file upload script --> 
<script src="js/jquery/jquery.filestyle.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
  $(function() {
      $("input.file_1").filestyle({ 
          image: "images/forms/choose-file.gif",
          imageheight : 21,
          imagewidth : 78,
          width : 310
      });
  });
</script>

<!-- Custom jquery scripts -->
<script src="js/jquery/custom_jquery.js" type="text/javascript"></script>
 
<!-- Tooltips -->
<script src="js/jquery/jquery.tooltip.js" type="text/javascript"></script>
<script src="js/jquery/jquery.dimensions.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$('a.info-tooltip ').tooltip({
		track: true,
		delay: 0,
		fixPNG: true, 
		showURL: false,
		showBody: " - ",
		top: -35,
		left: 5
	});
});
</script> 


<!--  date picker script -->
<link rel="stylesheet" href="css/datePicker.css" />
        <script src="javaScript/date.js"></script>
        <script src="javaScript/min.js"></script>
        <script src="javaScript/validate.js"></script>
        <script src="javaScript/additional.js"></script>
        <script>
            $(function() {
                $( "#datepicker" ).datepicker({
                    changeMonth: true,
                    changeYear: true
                });
            });
        </script>

// and update the datePicker to reflect it...
$('#d').trigger('change');
});
</script>

<!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
<script src="js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$(document).pngFix( );
});
</script>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<body> 
<!-- Start: page-top-outer -->
<div id="page-top-outer">    

<!-- Start: page-top -->
<div id="page-top">

	<!-- start logo -->
	<div id="logo">
	<a href=""><img src="images/shared/logo.png" width="156" height="40" alt="" /></a>
	</div>
	<!-- end logo -->
	
	<!--  start top-search --><!--  end top-search -->
 	<div class="clear"></div>

</div>
<!-- End: page-top -->

</div>
<!-- End: page-top-outer -->
	
<div class="clear">&nbsp;</div>
 
<!--  start nav-outer-repeat................................................................................................. START -->
<div class="nav-outer-repeat"> 
<!--  start nav-outer -->
<div class="nav-outer"> 

		<!-- start nav-right -->
		<div id="nav-right">
		
			<div class="nav-divider">&nbsp;</div>
			<%
                                        String text = "";
                                        String link = "";
                                        Users user = null;
                                            if(session.getAttribute("UserInfo")==null){
                                                link = "login.jsp";
                                                text = "Login";
                                                }else{
                                                	user = (Users)session.getAttribute("UserInfo");
                                                    link = "account.jsp";
                                                    text = user.getUsername();
                                                 }
                                        %>
             <a href="<%= link %>">                       
            <h3><%= text %></h3>
            </a>
			<div class="nav-divider">&nbsp;</div>
			<% 
            if(session.getAttribute("UserInfo")!=null){
            %>
            <form action="ProcessServlet" method="post">
            	<input type="submit" name="action" value="logout"/>
                </form>
             <%
            } 
            %>
			<div class="clear">&nbsp;</div>
		
			<!--  start account-content -->	

			<!--  end account-content -->
		
		</div>
		<!-- end nav-right -->


		<!--  start nav -->
		<!-- InstanceBeginEditable name="EditRegion1" -->
		<div class="nav">
          <div class="table">
            <ul class="current">
              <li><a href="#nogo"><b>User</b>
                    <!--[if IE 7]><!--><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
              </a>
              <div class="select_sub show">
                    <ul class="sub">
                      <li class="sub_show"><a href="ProcessServlet?action=Account Management">Account Management</a></li>
                      <li><a href="ProcessServlet?action=Order Management">Order Management</a></li>
                    </ul>
                  </div></li>
            </ul>
            <a href="#nogo">
            <div class="nav-divider">&nbsp;</div>
            </a>
            <ul class="select">
              <li><a href="#nogo"></a><a href="#nogo"><b>Events</b>
                    <!--[if IE 7]><!--><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                </a>
                  
                <!--[if lte IE 6]></td></tr></table></a><![endif]-->
              </li>
            </ul>
            <div class="nav-divider">&nbsp;</div>
            <ul class="select">
              <li><a href="#nogo"><b>Place</b>
                    <!--[if IE 7]><!--><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
              </a></li>
            </ul>
            <a href="#nogo">
            <div class="nav-divider">&nbsp;</div>
            </a>
            <ul class="select">
              <li><a href="#nogo"></a><a href="#nogo"><b>Orders</b>
                    <!--[if IE 7]><!--><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
              </a></li>
            </ul>
            <a href="#nogo">
            <div class="nav-divider">&nbsp;</div>
            </a>
            <ul class="select">
              <li><a href="#nogo"></a><a href="#nogo"><b>Promotion</b>
                    <!--[if IE 7]><!--><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
              </a></li>
            </ul>
            <a href="#nogo">
            <div class="nav-divider">&nbsp;</div>
            </a>
            <ul class="select">
              <li><a href="#nogo"></a><a href="#nogo"><b>Report</b>
                    <!--[if IE 7]><!--><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
              </a></li>
            </ul>
            <a href="#nogo">
            <div class="clear"></div>
            </a></div>
		  <a href="#nogo">
          <div class="clear"></div>
	      </a></div>
		<!-- InstanceEndEditable -->
		<!--  start nav -->
</div>
<div class="clear"></div>
<!--  start nav-outer -->
</div>
<!--  start nav-outer-repeat................................................... END -->

 <div class="clear"></div>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
		<h1>&nbsp;</h1>
	</div>
	<!-- end page-heading -->
	<!-- InstanceBeginEditable name="EditRegion2" -->
	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
      <tr>
        <th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
        <th class="topleft"></th>
        <td id="tbl-border-top">&nbsp;</td>
        <th class="topright"></th>
        <th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
      </tr>
      <tr>
        <td id="tbl-border-left"></td>
        <td><!--  start content-table-inner ...................................................................... START -->
            <div id="content-table-inner">
              <!--  start table-content  -->
              <div id="table-content">
                <!--  start message-yellow -->
                <!--  end message-yellow -->
                <!--  start message-red -->
                <!--  end message-red -->
                <!--  start message-blue -->
                <!--  end message-blue -->
                <!--  start message-green -->
                <!--  end message-green -->
                <!--  start product-table ..................................................................................... -->
                <form id="mainform" action="">
                  <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
					<th class="table-header-repeat line-left minwidth-1"><a href="">UserID</a>	</th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">UserName</a></th>
                                        <th class="table-header-repeat line-left"><a href="">Name</a></th>
					<th class="table-header-repeat line-left"><a href="">DayOfBirth</a></th>
					<th class="table-header-repeat line-left"><a href="">Address</a></th>
					<th class="table-header-repeat line-left"><a href="">Phone</a></th>
					<th class="table-header-repeat line-left"><a href="">Email</a></th>
					<th class="table-header-repeat line-left"><a href="">Status</a></th>
					<th class="table-header-options line-left"><a href="">Action</a></th>
				</tr>
                                    <%
                                        Users[] users = (Users[])session.getAttribute("Load");
                                        for(int i =0; i<users.length ; i++){
                                    %>
				<tr>
                                    <form id="mainform" action="ProcessServlet" method="post">
                                    <td><%= users[i].getUserID() %></td>
                                        <td><%= users[i].getUsername() %></td>
					<td><%= users[i].getName() %></td>
					<td><%= users[i].getDayOfBirth() %></td>
					<td><%= users[i].getAddress() %></td>
					<td><%= users[i].getPhone() %></td>
                                        <td><%= users[i].getEmail() %></td>
					<td><%= users[i].getStatus() %></td>
					<td class="options-width">
                                            <input type="submit" name="action" value="Disable"/><input type="hidden" name="txtID" value="<%= users[i].getUserID() %>"/>
                                            <input type="submit" name="action" value="Active"/>
					</td>
                                        </form>
				</tr>
                                <%
                                    }
                                %>
				</table>
                  <!--  end product-table................................... -->
                </form>
              </div>
              <!--  end content-table  -->
              <!--  start actions-box ............................................... -->
              <div id="actions-box"> <a href="" class="action-slider"></a>
                  <div id="actions-box-slider"> <a href="" class="action-delete">Add new</a> </div>
                <div class="clear"></div>
              </div>
              <!-- end actions-box........... -->
              <!--  start paging..................................................... -->
              <table border="0" cellpadding="0" cellspacing="0" id="paging-table">
                <tr>
                  <td><a href="" class="page-far-left"></a> <a href="" class="page-left"></a>
                      <div id="page-info">Page <strong>1</strong> / 15</div>
                    <a href="" class="page-right"></a> <a href="" class="page-far-right"></a> </td>
                  <td><select name="select"  class="styledselect_pages">
                      <option value="">Number of rows</option>
                      <option value="">1</option>
                      <option value="">2</option>
                      <option value="">3</option>
                    </select>
                  </td>
                </tr>
              </table>
              <!--  end paging................ -->
              <div class="clear"></div>
            </div>
          <!--  end content-table-inner ............................................END  -->
        </td>
        <td id="tbl-border-right"></td>
      </tr>
      <tr>
        <th class="sized bottomleft"></th>
        <td id="tbl-border-bottom">&nbsp;</td>
        <th class="sized bottomright"></th>
      </tr>
    </table>
	<!-- InstanceEndEditable -->
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	Admin Skin &copy; Copyright Internet Dreams Ltd. <span id="spanYear"></span> <a href="">www.netdreams.co.uk</a>. All rights reserved.</div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
 
</body>
<!-- InstanceEnd --></html>